console.log("ok !")

import './css/index.css'
import Vue from 'vue/dist/vue'

//路由
import VueRouter from 'vue-router'
//手动安装VueRouter
Vue.use(VueRouter)

import VueResource from 'vue-resource'
Vue.use(VueResource)


//按需导入mint-ui的组件
import { Button ,Header ,Swipe, SwipeItem } from 'mint-ui'
Vue.component(Button.name, Button)
Vue.component(Header.name, Header)
Vue.component(Swipe.name ,Swipe)
Vue.component(SwipeItem.name ,SwipeItem)

//引入mui
import './lib/mui/css/mui.css'
import './lib/mui/css/icons-extra.css'

import app from './app.vue'
import router from './router.js'    //分离router，声明router.js文件


  var vm = new Vue({
    el: "#app",
    render: c => c(app),
    router    //将router挂载在页面中
  })